<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.auth.ocr.title,
  description: seoConfig.auth.ocr.description,
  keywords: seoConfig.auth.ocr.keywords
})

const advantages = [
  { icon: 'lucide:scan-text', title: 'AI识别', description: '先进的OCR技术，准确识别各类证件' },
  { icon: 'lucide:zap', title: '极速识别', description: '秒级完成识别，快速提取信息' },
  { icon: 'lucide:check-circle', title: '高准确率', description: '识别准确率99%以上' },
  { icon: 'lucide:credit-card', title: '多证件支持', description: '支持身份证、银行卡、营业执照等' },
  { icon: 'lucide:smartphone', title: '多端适配', description: '支持PC、H5、APP多种终端' },
  { icon: 'lucide:api', title: '简单集成', description: 'RESTful API接口，快速集成' }
]

const scenarios = [
  { icon: 'lucide:landmark', title: '金融开户', description: '身份证识别、银行卡识别、快速开户', color: 'from-blue-500 to-cyan-500' },
  { icon: 'lucide:user-check', title: '实名认证', description: '证件信息提取、实名验证、自动填充', color: 'from-purple-500 to-pink-500' },
  { icon: 'lucide:building-2', title: '企业服务', description: '营业执照识别、企业资质审核、信息录入', color: 'from-green-500 to-emerald-500' },
  { icon: 'lucide:hotel', title: '酒店入住', description: '身份证识别、快速登记、提升效率', color: 'from-orange-500 to-red-500' },
  { icon: 'lucide:file-text', title: '票据管理', description: '发票识别、报销管理、财务记账', color: 'from-indigo-500 to-blue-500' },
  { icon: 'lucide:car', title: '车辆管理', description: '驾驶证识别、行驶证识别、车辆登记', color: 'from-yellow-500 to-orange-500' }
]
</script>

<template>
  <div class="min-h-screen">
    <ProductHero
      title="OCR文字识别"
      description="支持身份证、银行卡、营业执照等证件的OCR识别，快速提取关键信息，提升业务效率，降低人工成本"
    />
    <section class="py-10 md:py-15 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">产品优势</h2>
          <p class="text-lg text-gray-600">智能识别，提升效率</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(advantage, index) in advantages" :key="index" class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group">
            <div class="w-14 h-14 bg-gradient-to-br from-red-500 to-pink-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">{{ advantage.title }}</h3>
            <p class="text-gray-600 leading-relaxed">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">行业应用场景</h2>
          <p class="text-lg text-gray-600">快速提取信息，降低人工成本</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div v-for="(scenario, index) in scenarios" :key="index" class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden">
            <div class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity" :class="scenario.color" />
            <div class="relative">
              <div class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br" :class="scenario.color">
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">{{ scenario.title }}</h3>
              <p class="text-gray-600 leading-relaxed">{{ scenario.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>
